﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:SiteResource.Title() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <style type="text/css">
    .validation-label-error
    {
        color: Red;
        margin-left: 10px;
    }
    .validation-element-error
    {
        background-color: #fdd;
    }
    </style>
    <link href="/content/css/default.css" rel="stylesheet" type="text/css" />
    <link href="/content/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/content/css/jobs.css" rel="stylesheet" type="text/css" />
    <link href="/content/css/usercenter.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="/Scripts/formValidator.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/library.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/plug.js" charset="GB2312"></script>
    
    <script type="text/javascript" src="/Scripts/xheditor/ConfigXheditor.js"></script>
    <script type="text/javascript" src="/Scripts/xheditor/xheditor-zh-cn.js"></script>
    <script type="text/javascript">
        var control = new plug.Control();
        var lib = new library.NewptJob();
        function nextstep(sender, nextidx) {
            $(sender).parent().parent().hide();
            $('#step' + nextidx).show();
        }
        $(function () {
            control.BuildSelect({ element: 'sltWorkArea', nobind: [0] }, 'WorkArea');
            control.BuildSelect({ element: 'sltPositionType0', nobind: [0] }, 'PositionType');
            control.BuildSelect('sltDegree0', 'Degree');
            control.BuildSelect('sltPeriod0', 'Period');
            control.BuildSelect('sltCompanyBusiness', 'Business');
            control.BuildSelect('sltCompanyType', 'CompanyType');
            control.BuildSelect('sltCompanyDimensions', 'CompanyDimensions');
            $('#txtCompanyDetail').xheditor(editorConfig);
            lib.BindValidate();
        });
        function ValidateGroup(groupid, sender, nextframe) {
            if ($.formValidator.pageIsValid(groupid)) {
                nextstep(sender, nextframe)
            } 
        } 
        function NewPosition(sender) {
            lib.NewPosition(sender);
        }
        function DeletePosition(sender, index) {
            lib.DeletePosition(sender, index);
        }
        function submitform() {
            if ($.formValidator.pageIsValid('4')) {
                $('#dataform').submit();
            }
        }
        function ToggleMapSet(b) {
            if (b == 1) {
                $('#mapcontrol').show();
                $('#mapcontainer').show();
            }
            else {
                $('#mapcontainer').hide();
                $('#res').html('');
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content-page">
        <div class="contentline">
            <div class="main-nav">
                <a href="/">重庆大学生兼职网</a> > <a href="/home/newptjob">兼职发布</a></div>
        </div>
    </div>
    <div class="jobs-notice">
        重庆大学生兼职网提供便捷免费的兼职发布平台，请兼职发布者发布真实可靠的兼职信息，若发现发布虚假信息，将严厉处理！
    </div>
<div class="content-page">
    <form id="dataform" action="/home/SpeedPublish" method="post">
    <input type="hidden" name="Position" value="1" />
    <div class="page-left" id="step1">
        <div style="background-color: #e0e0e0;">
            <img alt="兼职发布" src="/content/images/step-01.png" /></div>
        <div class="hspace">
        </div>
        <div class="textboxs">
            <div class="textboxs-label">
                兼职标题：</div>
            <div class="textboxs-box">
                <input type="text" class="textboxs-ipt2" name="Caption" id="txtCaption" /></div>
            <div class="textboxs-message" style="color:Red;" id="txtCaptionTip"></div>
        </div>
        <div class="textboxs">
            <div class="textboxs-label">
            </div>
            <div class="textboxs-box">
                <input type="checkbox" name="Priority" id="ckbPriority" /><label for="ckbPriority">加急招聘</label>
            </div>
        </div>
        <div class="textboxs">
            <div class="textboxs-label">
                联系人：</div>
            <div class="textboxs-box">
                <input type="text" class="textboxs-ipt"  name="ContactMan"
                            id="txtContactMan" /></div>
            <div class="textboxs-message" style="color:Red;" id="txtContactManTip"></div>
        </div>
        <div class="textboxs">
            <div class="textboxs-label">
                联系电话：</div>
            <div class="textboxs-box">
                <input type="text" class="textboxs-ipt" name="ContactPhone"
                            id="txtContactPhone" /></div>
            <div class="textboxs-message" style="color:Red;" id="txtContactPhoneTip"></div>
        </div>
        <div class="textboxs">
            <div class="textboxs-label">
                兼职区域：</div>
            <div class="textboxs-box">
                <select name="WorkArea" id="sltWorkArea" class="textboxs-select"></select></div>
        </div>
        <div class="textboxs">
            <div class="textboxs-label">
                详细地址：</div>
            <div class="textboxs-box">
                <input type="text" class="textboxs-ipt2"  name="WorkAddress"
                            id="txtWorkAddress" /></div>
            <div class="textboxs-message" style="color:Red;" id="txtWorkAddressTip"></div>
        </div>
        <div class="hspace">
        </div>
        <div class="hspace">
        </div>
        <div style="padding-left: 128px; margin-bottom: 20px">
            <a href="javascript:;" onclick="ValidateGroup('1',this,2)">
                <img alt="下一步" src="/content/images/usercenter-next.png" /></a>
        </div>
    </div>
    <div class="page-left" id="step2" style="display:none;">
            <div style="background-color: #e0e0e0;">
                <img alt="下一步" src="/content/images/step-02.png" /></div>
            <div class="hspace">
            </div>
            <div id="positionbox" style="width:700px;">
            <div class="positionitem">
                        <div class="positionitem-line">
                            <div class="left">
                                职位名称：<input class="highlightborder #ffc15c" type="text" name="PositionName0" style="width: 335px"
                                    id="txtPositionName0" /></div>
                            <div class="left" style="padding-left: 2px;">
                                <div class="textboxs-message1" id="txtPositionName0Tip">
                                </div>
                            </div>
                            <div class="left" style="padding-left: 4px;">
                                招聘人数：<input class="highlightborder #ffc15c" type="text" style="width: 42px" name="Vacancy0"
                                    id="txtVacancy0" value="0" />&nbsp;'0'表示若干</div>
                            <div class="left" style="padding-left: 2px;">
                                <span class="textboxs-message1" id="txtVacancy0Tip"></span>
                            </div>
                        </div>
                        <div class="positionitem-line">
                            职位类型：<select name="PositionType0" id="sltPositionType0"></select>&nbsp;&nbsp; 薪酬范围：<input
                                type="text" style="width: 40px" name="MinSalary0" />&nbsp;--&nbsp;<input type="text"
                                    style="width: 40px" name="MaxSalary0" />&nbsp;（不填或错填表示面议） 结算周期：<select name="Period0"
                                        id="sltPeriod0"></select>
                        </div>
                        <div class="positionitem-line">
                            性别要求：<select name="Gender0">
                                <option value="-1" selected="selected">不限</option>
                                <option value="1">男生</option>
                                <option value="0">女生</option>
                            </select>&nbsp;&nbsp; 学历要求：<select name="Degree0" id="sltDegree0"></select>
                            <input type="checkbox" name="Experienced0" id="ckbExperienced0" /><label for="ckbExperienced0">有经验者优先</label>
                        </div>
                        <div class="positionitem-line">
                            <div class="left">
                                职位描述：</div>
                            <div class="left">
                                <textarea style="width: 550px; height: 200px" id="txtPositionDescript0" name="PositionDescript0"></textarea>
                            </div>
                            <div style="overflow: hidden; width: 100%; padding-left: 60px;">
                                <div class="left" style="padding-left: 2px;" id="txtPositionDescript0Tip"></div>
                            </div>
                        </div>
                    </div>
            </div>
            <div style="overflow: hidden; padding-left: 20px; padding-top: 10px">
                <a href="javascript:;" id="btnAddPosition" onclick="NewPosition(this)">+添加职位</a>
            </div>
            <div class="hspace">
            </div>
            <div class="hspace">
            </div>
            <div style="padding-left: 10px; margin-bottom: 20px">
            <a href="javascript:;" onclick="nextstep(this,1)">
                <img alt="上一步" src="/content/images/usercenter-prev.png" /></a>
                <a href="javascript:;"  onclick="ValidateGroup('2',this,3)">
                <img alt="下一步" src="/content/images/usercenter-next.png" style="margin-left: 30px" /></a>
            </div>
        </div>
    <div class="page-left" id="step3" style="display:none;">
        <div style="background-color: #e0e0e0;">
            <img alt="下一步" src="/content/images/step-03.png" /></div>
        <div class="hspace">
        </div>
        <div class="textboxs">
                <div class="textboxs-label">
                    企业名称：</div>
                <div class="textboxs-box">
                    <input type="text" class="textboxs-ipt2" name="CompanyName" id="txtCompanyName" />
                </div>
                <div class="textboxs-message-error" style="color:Red;" id="txtCompanyNameTip"></div>
            </div>
            <div class="textboxs">
                <div class="textboxs-label">
                    行业分类：</div>
                <div class="textboxs-box">
                    <select name="CompanyBusiness" id="sltCompanyBusiness" class="textboxs-select">
                        </select></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业类型：</div>
                    <div class="textboxs-box">
                        <select name="CompanyType" id="sltCompanyType" class="textboxs-select">
                        </select></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业规模：</div>
                    <div class="textboxs-box">
                        <select name="CompanyDimensions" id="sltCompanyDimensions" class="textboxs-select">
                        </select></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        企业简介：</div>
                    <div class="textboxs-box">
                        <textarea name="CompanyDetail" id="txtCompanyDetail" style="width: 500px; height: 200px;"></textarea>
                        <div>
                            <div class="textboxs-message-error" style="color:Red;" id="txtCompanyDetailTip">
                            </div>
                        </div>
                    </div>
                </div>                
            <div class="hspace">
            </div>
            <div class="hspace">
            </div>
            <div style="padding-left: 128px; margin-bottom: 20px">
            <a href="javascript:;" onclick="nextstep(this,2)">
                <img alt="上一步" src="/content/images/usercenter-prev.png" /></a>
                <a href="javascript:;" onclick="ValidateGroup('3',this,4)">
                <img alt="下一步" src="/content/images/usercenter-next.png" style="margin-left: 30px" /></a>
            </div>
        </div>
    <div class="page-left" id="step4" style="display:none;">
            <div style="background-color: #e0e0e0;">
                <img alt="下一步" src="/content/images/step-04.png" /></div>
            <div class="hspace">
            </div>
            <div>
                请留下您的联系方式，以便于接收求职者简历。
            </div>
            <div class="textboxs">
            <div class="textboxs-label">
                用户名：</div>
            <div class="textboxs-box">
                <input type="text" class="textboxs-ipt2" name="UserName" id="txtUserName" /></div>
            <div class="textboxs-message" id="txtUserNameTip">
                    </div>
            </div>
            <div class="textboxs">
                <div class="textboxs-label">
                    企业名：</div>
                <div class="textboxs-box">
                    <input type="text" class="textboxs-ipt" name="CorporationName" id="txtCorporationName" /></div>
                <div class="textboxs-message" id="txtCorporationNameTip">
                    </div>
            </div>
            <div class="textboxs">
                <div class="textboxs-label">
                    企业邮箱：</div>
                <div class="textboxs-box">
                    <input type="text" class="textboxs-ipt" name="CorpEmail" id="txtCorpEmail" /></div>
                <div class="textboxs-message" id="txtCorpEmailTip">
                    </div>
            </div>
            <div class="textboxs">
                <div class="textboxs-label">
                    联系电话：</div>
                <div class="textboxs-box">
                    <input type="text" class="textboxs-ipt"  name="Phone" id="txtPhone" /></div>
                <div class="textboxs-message" id="txtPhoneTip"></div>
            </div>
            <div class="textboxs">
                <div class="textboxs-label">
                    联系地址：</div>
                <div class="textboxs-box">
                    <input type="text" class="textboxs-ipt"  name="Location" id="txtLocation" /></div>
                <div class="textboxs-message" id="txtLocationTip"></div>
            </div>
            <div class="hspace">
            </div>
            <div class="hspace">
            </div>
            <div style="padding-left: 10px; margin-bottom: 20px">
            <a href="javascript:;" onclick="nextstep(this,3)">
                <img alt="上一步" src="/content/images/usercenter-prev.png" /></a>
            <a href="javascript:;" onclick="submitform()">
                <img alt="下一步" src="/content/images/usercenter-submit.png" />
            </a>
            </div>
        </div>
    </form>
        <div class="page-right">
            <div class="rightad">
                <a href="#">
                    <img alt="广告" src="/content/images/sidead1.jpg" /></a>
            </div>
            <div class="rightad">
                <a href="#">Google提供的广告</a>
            </div>
            <div class="rightad">
                <div class="rightad-title">
                    <a href="#">重庆巴渝职校-您就业好帮手</a></div>
                <div>
                    好就业,重庆巴渝职校.随到</div>
                <a href="#">www.bayu.cc</a>
                <div class="hspace10">
                </div>
            </div>
            <div class="rightad">
                <div class="rightad-title">
                    <a href="#">重庆巴渝职校-您就业好帮手</a></div>
                <div>
                    好就业,重庆巴渝职校.随到</div>
                <a href="#">www.bayu.cc</a>
                <div class="hspace10">
                </div>
            </div>
            <div class="rightad">
                <div class="rightad-title">
                    <a href="#">重庆巴渝职校-您就业好帮手</a></div>
                <div>
                    好就业,重庆巴渝职校.随到</div>
                <a href="#">www.bayu.cc</a>
                <div class="hspace10">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
